<?php
namespace Admin\Model;
use Think\Model;
class NewsModel extends Model {
    
   


   protected $_validate = array(
    	
    	//array(验证字段1,验证规则,错误提示,[验证条件,附加规则,验证时间])
    	array('title','require','消息标题必填！','1','','3'),
        
        array('content','5,1000','字数在5~1000之间','1','length','3')      
		);
}